<?php
class Admin_Form_EditCron extends Arm_Form
{
    public function init()
    {
        $fields = new Arm_Form_Fields();
        $this->addElement($fields->onOffSelect('on')->setValue('1'));       
        $cmd = new Zend_Form_Element_Text('cmd');
        $cmd->setRequired(true);
        $cmd->setLabel(Arm_Translate::_('Команда'));
        $this->addElement($cmd);
        $period = new Zend_Form_Element_Text('period');
        $period->setLabel(Arm_Translate::_('Период запуска'));
        $period->setDescription(Arm_Translate::_('Указывайте в секундах через сколько запускать команду'));
        $period->setRequired(true);
        $this->addElement($period);
        $description = new Zend_Form_Element_Textarea('description');
        $description->setLabel(Arm_Translate::_('Описание команды'));
        $description->setAttribs(array('cols'=>"30", 'rows'=>"5"));
        $description->setRequired(true);
        $this->addElement($description);
        $this->addElement($fields->submit());
    }
}